package com.springbootdf.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.springbootdf.Dto.GameDto;
import com.springbootdf.entity.Game;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springbootdf.entity.Rules;
import com.springbootdf.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wy
 * @since 2022-08-18
 */
@Mapper
public interface GameMapper extends BaseMapper<Game> {

    Page<GameDto> findPage(Page<Game> page, @Param("name") String name);

    List<Rules> selectRulesByGameId(Integer gameId);
}
